﻿using IterationLife.Extensions.ControllerBase;
using IterationLife.PlatformBackEnd.AppServices.Contracts.Systems;
using IterationLife.PlatformBackEnd.AppServices.Dtos.Systems;
using IterationLife.System.Queries;

namespace IterationLife.PlatformBackEnd.WebSite.Areas.Systems.Controllers {
    /// <summary>
    /// 行政区域控制器
    /// </summary>
    public class DistrictController : TreeGridControllerBase<DistrictDto, DistrictQuery> {
        /// <summary>
        /// 初始化行政区域控制器
        /// </summary>
        /// <param name="service">行政区域服务</param>
        public DistrictController( IDistrictService service ) 
            : base( service ) {
            DistrictService = service;
        }

        /// <summary>
        /// 行政区域服务
        /// </summary>
        public IDistrictService DistrictService { get; private set; }
    }
}